{template header}
    <div class="main">
        <div class="login">
            <ul>                
                <li>
                    <input type="text" placeholder="请输入要绑定账号的用户名" name="username" class="input_3" />
                </li>
                <li>
                    <input type="password" placeholder="请输入要绑定账号的密码" name="password" class="input_3" />
                </li>
            </ul>
            <div class="mar15">
                <input type="button" onclick="dosubmit();" value="立即绑定" class="btnBlue" />
            </div>
        </div>
    </div>

{template footer}

<script type="text/javascript">
function dosubmit() {
        $.post("{U('User/ThirdLogin/login_return')}",{
            type     : "{$_GET['login_code']}",
            openid   : "{$_GET['openid']}",
            username : $('input[name=username]').val(),
            password : $('input[name=password]').val()
        },function(ret){
            alert(ret.info);
            if (ret.status == 1) {
                location.href = ret.url;
            }
        },'json');
}
setTitle('绑定帐号');
</script>
</body>
</html>